/*
 * Copyright 2010 Katsunori Koyanagi
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package sweezy.anim.core
{

	public interface IAnimationBuilder
	{

		function action(action:IAction, quePosition:uint):IAnimationBuilder;

		function get animation():IAnimation;

		function autoRewind(autoRewind:Boolean):IAnimationBuilder;

		function by(name:String, offset:Number, round:Boolean = false):IAnimationBuilder;

		function delay(delay:uint):IAnimationBuilder;

		function duration(duration:uint):IAnimationBuilder;

		function easeIn(name:String):IAnimationBuilder;

		function easeInOut(name:String):IAnimationBuilder;

		function easeOut(name:String):IAnimationBuilder;

		function easeOutIn(name:String):IAnimationBuilder;

		function easing(easing:IEasing):IAnimationBuilder;

		function fromBy(name:String, start:Number, offset:Number, round:Boolean = false):IAnimationBuilder;

		function fromTo(name:String, start:Number, end:Number, round:Boolean = false):IAnimationBuilder;

		function onComplete(handler:Function, scope:Object = null, params:Array = null):IAnimationBuilder;

		function onPause(handler:Function, scope:Object = null, params:Array = null):IAnimationBuilder;

		function onStart(handler:Function, scope:Object = null, params:Array = null):IAnimationBuilder;

		function onUpdate(handler:Function, scope:Object = null, params:Array = null):IAnimationBuilder;

		function option(option:Object):IAnimationBuilder;

		function padding(before:uint, after:uint = 0):IAnimationBuilder;

		function repeat(numRepeat:uint = 0):IAnimationBuilder;

		function reverse():IAnimationBuilder;

		function roundTrip():IAnimationBuilder;

		function scale(scale:Number):IAnimationBuilder;

		function slice(startPosition:uint, duration:uint = 0):IAnimationBuilder;

		function start(name:String = null):IAnimation;

		function to(name:String, end:Number, round:Boolean = false):IAnimationBuilder;
	}
}
